<?php


namespace App\Http\Controllers\Common;


use App\Exceptions\APIHttpException;
use App\Http\Middleware\Auth;
use App\Http\Model\Common\SubjectModel;

class Subject
{

    /**
     * 通用-获取当前用户有权限的主体
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function search()
    {
        $where = request()->input('where');
        /*有权限的监管账户ID*/
        $id = Auth::pfs([], 0);
        /*通用-获取当前用户有权限的主体:查询*/
        return APIHttpException::success(['list' => SubjectModel::search($where, $id)]);
    }


}





/**
 * Subject.php
 *
 * 说明:
 *
 * 修改历史
 * ----------------------------------------
 * 2021/6/15 11:12:00   操作:创建
 **/
